package com.ag.bean;

import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * TbTaskStatus entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TB_TASK_STATUS", schema = "dbo", catalog = "AGDB")
public class TbTaskStatus implements java.io.Serializable {

	// Fields

	private String tsId;
	private String tsName;
	private String a;
	private String b;
	private String c;
	private Set<TbTask> tbTasks = new HashSet<TbTask>(0);

	// Constructors

	/** default constructor */
	public TbTaskStatus() {
	}

	/** minimal constructor */
	public TbTaskStatus(String tsId, String tsName) {
		this.tsId = tsId;
		this.tsName = tsName;
	}

	/** full constructor */
	public TbTaskStatus(String tsId, String tsName, String a, String b,
			String c, Set<TbTask> tbTasks) {
		this.tsId = tsId;
		this.tsName = tsName;
		this.a = a;
		this.b = b;
		this.c = c;
		this.tbTasks = tbTasks;
	}

	// Property accessors
	@Id
	@Column(name = "TS_ID", unique = true, nullable = false, length = 4)
	public String getTsId() {
		return this.tsId;
	}

	public void setTsId(String tsId) {
		this.tsId = tsId;
	}

	@Column(name = "TS_NAME", nullable = false, length = 100)
	public String getTsName() {
		return this.tsName;
	}

	public void setTsName(String tsName) {
		this.tsName = tsName;
	}

	@Column(name = "A", length = 60)
	public String getA() {
		return this.a;
	}

	public void setA(String a) {
		this.a = a;
	}

	@Column(name = "B", length = 60)
	public String getB() {
		return this.b;
	}

	public void setB(String b) {
		this.b = b;
	}

	@Column(name = "C", length = 60)
	public String getC() {
		return this.c;
	}

	public void setC(String c) {
		this.c = c;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbTaskStatus")
	public Set<TbTask> getTbTasks() {
		return this.tbTasks;
	}

	public void setTbTasks(Set<TbTask> tbTasks) {
		this.tbTasks = tbTasks;
	}

}